﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WomanMotion.WebApi.Infrastructure.DataBaseCommon;
using WomanMotion.WebApi.Infrastructure.Ioc;
using WomanMotion.WebApi.Model.Dtos.Classify;
using WomanMotion.WebApi.Model.Dtos.Comment;
using WomanMotion.WebApi.Model.Entitys;

namespace WomanMotion.WebApi.Service.IService
{
    public interface ICommentService : IBaseCRUDService<Comment, CommentVM, UpdateCommentDTO, CreatedCommentDTO>, ITransientDependency
    {
        /// <summary>
        /// 根据当前评论ID查询出所属下一级的评论
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<List<CommentPageVM>> GetByParentIdAsync(long id);

        /// <summary>
        /// 返回前端tree控件的评论数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<CommentTreeListVM> GetTreeByIdAsync(long id);
    }
}